package com.hedl.studyandjava8.java8_2unit.java8_25.entity;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/01/19/20:10
 */
public class Apple {
    private Integer weight;
    private Color color;

    public Apple(){}

    public Apple(Integer weight, Color color) {
        this.weight = weight;
        this.color = color;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "weight=" + weight +
                ", color=" + color +
                '}';
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }
}
